Short memo -- expanded as needed.


Building Basilisk II Windows port
---------------------------------

First of all, you need version 5 or 6 of Visual C to build it. 
If you have any other version, you need to modify vc5opti
(see below) to match to the assembler generated by the compiler.

You're supposed to generate the UAE core files yourself using projects
"build68k" and "gencpu".

You also need to build the vc5opti program, it's a utility I wrote to 
speed up UAE. It helps in getting rid of the fetch/execute loop and
specflag checks in every iteration.

After you have build vc5opti and Basilisk, you need to run the "opti.bat"
batch file. It takes the generated cpuemu.asm file and makes a new one, 
and assembles it with masm (ml.exe must be within the path). Then just relink 
Basilisk to use the new cpuemu.obj.


Step by step:
-------------
get the latest sources
build build68k
build gencpu
build vc5opti
run build68k
run gencpu
copy the resulting source files to uae folder
edit cpuemu.cpp (see below)
build Basilisk
run opti.bat
build Basilisk again (relink only is needed)


After you have generated cpuemu.cpp file, you need to add one line 
manually at the beginning of it:

  cpuop_func *ref_cpufunctbl(void) {return(cpufunctbl[0]);}

This function is never called, it's just to force an EXTRN definition 
for cpufunctbl, otherwise MASM will generate a lot of errors about 
missing externals.

The first part (building and running build68k & gencpu) is the same for
every project that uses a recent version of UAE. The vc5opti thing is specific
to the Windows port, I can speed up the cpu core considerably by using that,
but sadly it makes it less portable.


If you don't have VC5 or VC6 and cannot modify vc5opti, you can always undefine
STREAMLINED_UAE in sysdeps.h. This may also be needed if you don't have MASM
to assemble the file "cpuemu.asm".

Lauri
